<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content="" />
    <title>汽车购票系统——用户登录页面</title>
    <link th:href="@{/css/login_user.css}" rel="stylesheet">
</head>
<body>
<form class="login" th:action="@{/customer/login}" method="post">
    <div class="login_head"><img th:src="@{/image/logo.png}"></div>
    <div style="text-align: center;" th:if="${errorMsg} != null" id="myAlert" class="alert alert-danger" data-dismiss="alert"
         th:text="${errorMsg}">
    </div>
    <p class="lg_p1">账号登录</p>
    <table><input id="username" name="username" type="text" placeholder="请输入账号"></table>
    <table><input id="password" name="password" type="password" placeholder="请输入密码"></table>
    <div class="checkbox"><input id="checkbox" type="checkbox" value="remember-me">记住密码</div>
    <button class="btn" type="submit" >登录</button>
    <p class="lg_p2">没有账号<a th:href="@{/customer/register}">立即注册</a></p>
</form>
<script>
    function codefans(){
        var msg = document.getElementById("myAlert");
        msg.style.display="none";
    }
    setTimeout("codefans()",2000);
</script>
</body>
</html>
